import service from "utils/request"

// 获取权限列表
export const getDictList = (params) => {
  return service({
    url: "/role/getDictList",
    method: "get",
    params
  })
}

// 新增权限
export const createDict = (data) => {
  return service({
    url: "/role/createDict",
    method: "post",
    data
  })
}

// 更新权限
export const updateDict = (data) => {
  return service({
    url: "/role/updateDict",
    method: "put",
    data
  })
}

// 删除权限
export const deleteDict = (params) => {
  return service({
    url: "/role/deleteDict",
    method: "delete",
    params
  })
}
